#pragma once
#ifndef LIBRARY_H
#define LIBRARY_H
#define MAX_BOOKS 50
#define INITIAL_PASSWORD "abc123"

typedef struct
{
    int id;
    char title[50];
    char author[50];
    int quantity;
} Book;

extern Book library[MAX_BOOKS];
extern int n;

void menu();
void login();
void input(int amount[]);
void search(int amount[], int n);
void deleteBook(int amount[], int n);
void out(int amount[], int n);
void displayAllBooks();
int sum(int amount[], int n);

#endif 
